package com.wang.dao;

import com.wang.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    public User findUser(@Param("uname")String uname, @Param("upassword")String upassword);

    void addUser(User user);

    User selectUserbyName(String uname);

    void addParent(@Param("uid")int uid, @Param("uname")String uname);

    void addTeacher(@Param("uid")int uid, @Param("uname")String uname);

    void addParentMessage(Parents parents);

    Parents findParent(int uid);

    List<Students> findStudents(int pid);

    void deleteStudent(int sid);

    Students findStudentsbysid(int sid);

    void addStudent(Students students);

    void addStudentall(Students students);

    Teacher findTeacher(int uid);

    void addTeacherMessage(Teacher teacher);

    List<Lessionstime> findLessiontime(int tid);

    List<Grade> findGrade(int tid);

    List<Project> findProject(int tid);

    Lessionstime findLessiontimeByid(Integer tid);

    Grade findGradeByid(Integer gid);

    Project findProjectByid(Integer pid);

    void updatetime(Lessionstime lessionstime);

    void updategrade(Grade grade);

    void updateproject(Project project);

    void deletetime(Integer lid);

    void deletegrade(Integer gid);

    void deleteproject(Integer pid);

    void addtime(Lessionstime lessionstime);

    void addgrade(Grade grade);

    void addproject(Project project);

    List<Teacher> findTeacherall();

    Lessionstime findLessiontimeOne(int tid);

    Grade findGradeOne(int tid);

    Project findProjectOne(int tid);

    int findStudentsbyname(@Param("pid")int pid, @Param("sname")String sname);

    void addorder(Order order);

    List<Order> findOrderbytid(int tid);

    void updatetorder(Integer oid);

    void updatetnoorder(Integer oid);

    List<Order> findOrderbypid(int pid);

    void updateporder(Integer oid);

    void updatepnoorder(Integer oid);
}
